package com.bw.mapper;

import com.bw.domain.Role;
import com.bw.domain.TbMenu;
import com.bw.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author :Beyond🎸🎸
 * @date : 2025-02-28 19:07:52
 * @description
 **/
@Mapper
public interface UserMapper {

    @Select("select * from `t_user` where username = #{username}")
    User selectOne(String username);

    List<Role> listRoleByUserId(Integer userId);

    List<User> list(User user);

    List<TbMenu> listMenus();
}
